package com.oocl.rcm.entry;

import java.util.Scanner;

import com.oocl.rcm.controller.impl.ControllerImpl;
import com.oocl.rcm.db.MyLinkListFactory;
import com.oocl.rcm.db.MyLinkedList;
import com.oocl.rcm.db.MyLinkedListFactoryTest;
import com.oocl.rcm.model.Customer;
import com.oocl.rcm.util.FormatPrinter;

public class Entry {
	
	
	/**
	 * 命令格式：
	 * 添加 A 
	 * 添加 A  name：wang，sex:m,.....(不用注明id,id自动增长)
	 * 修改 U  id:1,......(必须先声明要修改的id)
	 * 排序 O
	 * 查看 L
	 * 查看  L  sex:m   (支持多属性查找) 
	 * 删除  D  id:10;
	 * @param args
	 */
	public static void main(String[] args) {
		init();
		ControllerImpl control = new ControllerImpl();
		while(true){		
			control.commandProcess(System.in, System.out);
		}
	}
	
	
	
	
	//初始化界面
	public static void init(){
		FormatPrinter fp = new FormatPrinter();
		fp.printStart();
		
	}

	

}
